<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
</head>
<body>
{template "content","header"}
<div class="main center w1024">
    <div class="w980 center sitemap">
		<div class="_nav">
			<a href="{siteurl($siteid)}"><b>网站首页</b></a><span> &gt; </span>{catpos($catid)} 正文
		</div>
		<div id="Article" class="_cbox">
			<h1>全站栏目导航</h1>
			<div class="content">
				<table width="96%" border="0" class="center">
					<tr>
						<th width="100">主要栏目</th>
						<td>
						{php $_topids = array();}
						{loop $CATEGORYS $cat}
						{if $cat['parentid'] == 0}
							<a href="{$cat['url']}" target="_blank">{$cat['catname']}</a>
							{php $_topids[] = $cat['catid'];}
						{/if}
						{/loop}
						</td>
					</tr>
					{loop $_topids $cid}
					{if $CATEGORYS[$cid]['child']}
					<tr>
						<th><a href="{$CATEGORYS[$cid]['url']}" target="_blank">{$CATEGORYS[$cid]['catname']}</a></th>
						<td>
							{php $_cats = explode(',',$CATEGORYS[$cid]['arrchildid']);}
							{php array_shift($_cats);}
							{loop $_cats $_id}
							<a href="{{$CATEGORYS[$_id]['url']}" target="_blank">{$CATEGORYS[$_id]['catname']}</a>
							{/loop}
						</td>
					</tr>
					{/if}
					{/loop}
				</table>
			</div>
		</div>
        <div class="_clear">
        </div>
        {template "content","border-b"}
	</div>
</div>
{template "content","footer-min"}
</body>
</html>
